// File generated from our OpenAPI spec by Stainless.

package com.metest.api.models.rest.actuator.metrics

import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import com.metest.api.core.jsonMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class MetricListResponseTest {

    @Test
    fun create() {
        val metricListResponse = MetricListResponse.builder().build()
    }

    @Test
    fun roundtrip() {
        val jsonMapper = jsonMapper()
        val metricListResponse = MetricListResponse.builder().build()

        val roundtrippedMetricListResponse =
            jsonMapper.readValue(
                jsonMapper.writeValueAsString(metricListResponse),
                jacksonTypeRef<MetricListResponse>(),
            )

        assertThat(roundtrippedMetricListResponse).isEqualTo(metricListResponse)
    }
}
